package xyz.xtt.user.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
/**
 * <p>
 * 用户资金账户余额表
 * </p>
 *
 * @author dale
 * @since 2025-02-25
 */
@Data
@Builder
@Accessors(chain = true)
@TableName("tbl_user_fund_account")
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "TblUserFundAccount对象", description = "用户资金账户余额表")
public class TblUserFundAccount implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    private Long id;

    @ApiModelProperty("通通用户id")
    private Long userId;

    @ApiModelProperty("用户账户余额")
    private BigDecimal balance;

    @ApiModelProperty("未结算入账金额")
    private BigDecimal unsettledBalance;

    @ApiModelProperty("累计收入")
    private BigDecimal totalIncome;

    @ApiModelProperty("累计已提现金额")
    private BigDecimal totalWithdraw;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty("版本号（从0开始，每次更新加1）")
    private Long ver;
}
